<extend name="Public/base"/>

<block name="body">
<style>
.datetimepicker-days thead tr th{background: none !important;}
</style>
	<script type="text/javascript" src="__STATIC__/uploadify/jquery.uploadify.min.js"></script>
    <div class="main-title">
        <h2>更新项目进度</h2>
    </div>
    <ul class="tab-nav nav">
        <li class="current"><a href="javascript:void(0)">工序信息</a></li>

    </ul>
    
    <form action="{:U()}" method="post" class="form-horizontal">
        <input type="hidden" name="id" value="{$get[id]}"/>




        <!-- 工序 -->
        <div class="tab-content">
            <div class="form-item">

                <label class="item-label" style="color: red;">请将已完工的工序打上‘ √ ’：</label>
                <div class="controls" style="margin-left:20px;">
                    <volist name="gongxu_list" id="son" key="kk">
                        <div style="margin-bottom: 10px;">
                            <label class="checkbox" style="width:200px;">
                                <if condition="$group neq 1">
                                    <if condition="$son['end_status'] eq 1">
                                        <input type="checkbox" name="gongxu_id[]" value="{$son['id']}" <if condition="$son['end_status'] eq 1">checked</if> disabled  />{$son['title']}
                                        <else/>
                                        <input type="checkbox" name="gongxu_id[]" value="{$son['id']}" <if condition="$son['end_status'] eq 1">checked</if> />{$son['title']}
                                    </if>
                                <else/>
                                    <input type="checkbox" name="gongxu_id[]" value="{$son['id']}" <if condition="$son['end_status'] eq 1">checked</if>  />{$son['title']}
                                </if>

                            </label>
                            <label><span>实际完工时间：</span>

                                <if condition="$son['end_status'] eq 1">
                                        <if condition="$group neq 1">
                                            <input class="text xz_time" type="text" name="end_time{$son['id']}" value="{$son['end_time']|date='Y-m-d',###}" disabled />
                                        <else/>
                                            <input class="text xz_time" type="text" name="end_time{$son['id']}" value="{$son['end_time']|date='Y-m-d',###}" />
                                        </if>
                                <else/>
                                    <input class="text xz_time" type="text" name="end_time{$son['id']}" value="" />
                                </if>
                            </label>
                        </div>
                    </volist>
                </div>

            </div>
            <div class="form-item" style="margin-top: 50px;">
                <button class="btn submit-btn ajax-post confirm" msg="确认信息正确吗？" id="submit" type="submit" target-form="form-horizontal">确 定</button>
                <button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
            </div>
        </div>


    </form>

</block>

<block name="script">
<include file="Public:datetime" />
    <script type="text/javascript">
	
		$('.tab-nav li').click(function(){
			$(this).attr('class','current')
						.siblings().attr('class','');
			var n_index=$('.tab-nav li').index(this);
				$('.tab-content').eq(n_index).show()
							 .siblings().hide();
		});
	
        //导航高亮
        highlight_subnav('{:U('Project/index')}');
		
		$('.xz_time').datetimepicker({
            format: 'yyyy-mm-dd',
            language:"zh-CN",
            minView:2,
            autoclose:true
        });


        if($("#news_navs").val()=='news'){
            $('.side-sub-menu').find('a[href="/index.php?s=/Admin/news/index.html"]').closest('li').addClass('current');
        }
    </script>
</block>
